﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SourceControlEssentials
{
    class Kubariev : IStudent
    {
        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

        public int Id()
        {
            return 10;
        }

        public string GetLastName()
        {
            return "Kubariev";
        }

        public string GetFirstName()
        {
            return "Anatolii";
        }

        public int GetGroup()
        {
            return 318;
        }

        public string MethodName()
        {
            return "integer representation of a string";
        }

        public string ExecuteStrategy(string value)
        {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < value.Length; ++i)
            {
                int intValue = (int)value[i];
                sb.Append(intValue.ToString());
            }
            return sb.ToString(); 
        }
    }
}
